import { NIcon } from 'naive-ui';
import { Component, h } from 'vue';

/** 渲染 navie-ui 的图标 */
export function renderIcon(icon: Component) {
    return () => {
        return h(NIcon, null, { default: () => h(icon) });
    };
}
